/**
 * (C) 2007 - 2009 Parleys.com NV.
 */
package com.parleys.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author stephanjanssen
 */
@SuppressWarnings("serial")
public class BaseObject implements Serializable {

    protected Long id;

    protected Date creationDate;

    protected Date modificationDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getModificationDate() {
        return modificationDate;
    }

    public void setModificationDate(Date modificationDate) {
        this.modificationDate = modificationDate;
    }

    public boolean equals(Object obj) {
        return (obj instanceof BaseObject)
            && getId().equals(((BaseObject)obj).getId());
    }

    public int hashCode() {
        return id.hashCode();
    }
}
